<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>登录界面</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/login123.css">
</head>
<body>
<section>
    <div class="imgBx">
        <img src="${pageContext.request.contextPath}/static/img/蟹堡王1.jfif">
    </div>

    <div class="contentBx">
        <div class="formBx">
            <h2>登录</h2>
            <span id="errorMsg">
                ${ empty requestScope.msg ? "请输入用户名和密码":requestScope.msg }
            </span>
            <form  action="${pageContext.request.contextPath}/login" method="post">
                <div class="inputBx">
                    <span>用户名</span>
                    <input type="text" name="username" value="${requestScope.username}" >
                </div>
                <div class="inputBx">
                    <span>密码</span>
                    <input type="password" name="password">
                </div>
                <div class="remember">
                    <label><input type="checkbox" name=""> 记住我</label>
                </div>
                <div class="inputBx">
                    <input type="submit" value="Sign in" name="">
                </div>
                <div class="inputBx">
                    <p>没有帐号? <a href="${pageContext.request.contextPath}/toregist">注册</a></p>
                </div>
            </form>
        </div>
    </div>

</section>
</body>
</html>